package com.caoyuqi.picture.mapper;

import com.caoyuqi.picture.model.User;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface CrudMapper {
    @Insert("insert into user (username,pwd,admin ) values (#{username},#{pwd},#{admin})")
    void InsertInToUser(String username,String pwd,String admin);
    @Select("select * from user where username = #{username}")
    User SelectByUsername(String username);
    @Delete("delete from user where username = #{username}")
    void DeleteUser(String username);

}
